xend: xenapi: Suspended domain causes fault if vif.get_all_records() is called
authorKeir Fraser <keir@xensource.com>
Tue, 16 Oct 2007 16:41:33 +0000 (17:41 +0100)
committerKeir Fraser <keir@xensource.com>
Tue, 16 Oct 2007 16:41:33 +0000 (17:41 +0100)
commitd61d5e12e118e714b1e31c84e754339cd71f19c4
tree8db2b13e9149b5b697423ceefa96f90f13eecfed
parentc68c6c6b181a2f0f2e6fdb6ace65e9082d5319ce
xend: xenapi: Suspended domain causes fault if vif.get_all_records() is called

A single suspended domain on the system causes a fault when
vif.get_all_records() is called since this returns an ErrorDescription
and no 'Value' in the 'v' dictionary. This patch now returns a 'None'
as Value which might not be optimal but better than faulting.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xend/XendAPI.py